//
//  LTView.m
//  UIProject-A
//
//  Created by lanou3g on 15/7/16.
//  Copyright (c) 2015年 何 旭. All rights reserved.
//

#import "LTView.h"

@implementation LTView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat height = frame.size.height;
        CGFloat width = frame.size.width;

        self.Label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, width/3, height)];
        [self addSubview: self.Label];
        
        
        self.TextField = [[UITextField alloc] initWithFrame:CGRectMake(width/3, 0, width - width/3, height)];
        self.TextField.borderStyle = UITextBorderStyleRoundedRect;
        
        [self addSubview:self.TextField];
        
        
    
        
    }
    return  self;
}







/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
